<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../../common/jsp/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>结算管理-查看盘点记录</title>
<%@ include file="../../../common/jsp/config.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		;
	});
</script>
</head>
<body>
     <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="common/images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">结算管理</span>
			&nbsp;<img src="common/images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">查看盘点记录</span></td>
		  </tr>
		</table>
     </div>
     <div class="main_1">
       <table width="99%" border="0" cellpadding="10" cellspacing="1" bgcolor="#D3DEEF">
         <tr>
           <td align="left" class="Blue14" bgcolor="#FAFAFA" colspan="4">盘点计划信息</td>
         </tr>
         <tr>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>单号</strong></td>
		    <td width="30%" bgcolor="#FAFAFA"><s:property value="check.checkNo" /></td>
		    <td width="20%" bgcolor="#FAFAFA" align="right"><strong>盘点日期</strong></td>
		    <td width="30%" bgcolor="#FAFAFA"><s:date name="check.checkDate"  format="yyyy-MM-dd"/></td>
		 </tr>
		<tr>
		    <td bgcolor="#FAFAFA" align="right"><strong>盘点月份</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.monthNo" /></td>
		    <td bgcolor="#FAFAFA" align="right"><strong>盘点分类</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.categoryNames" /></td>
		</tr>
		<tr>
		    <td bgcolor="#FAFAFA" align="right"><strong>盘点总数</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.count" /></td>
		    <td bgcolor="#FAFAFA" align="right"><strong>总金额</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.amount" /></td>
		</tr>
         <tr>
		    <td bgcolor="#FAFAFA" align="right"><strong>实际金额</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.realAmount" /></td>
		    <td bgcolor="#FAFAFA" align="right"><strong>差额</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.diffAmount" /></td>
		 </tr>
         <tr>
		    <td bgcolor="#FAFAFA" align="right"><strong>状态</strong></td>
		    <td bgcolor="#FAFAFA"><s:property value="check.statusName" /></td>
		    <td bgcolor="#FAFAFA" align="right"></td>
		    <td bgcolor="#FAFAFA"></td>
		 </tr>
       </table>
     </div>
     <div class="clear"></div>
	 <div class="main_scroll">
      <table width="1200px" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="50px" >大分类</th>
          <th width="60px" >中分类</th>
          <th width="95px" >名称</th>
          <th width="120px" >型号</th>
          <th width="120px" >其他</th>
		  <th width="50px">单位</th>
		  <th width="95px">类别</th>
		  <th width="95px">批次</th>
		  <th width="95px">价格</th>
		  <th width="60px">库存数量</th>
		  <th width="95px">实际数量</th>
		  <th width="95px">盈亏数</th>
		  <th width="95px">盈亏金额</th>
		</tr>
		<s:iterator value="check.details" id="detail" status="st">
	      <s:if test="#st.Odd">
	        <tr class="odd">
	      </s:if >
	      <s:else>
	        <tr class="even">
	      </s:else>
              <td><s:property value="#detail.skuDetail.materials.rootCategory.name" /></td>
              <td><s:property value="#detail.skuDetail.materials.category.name" /></td>
              <td><s:property value="#detail.skuDetail.materials.name" /></td>
              <td><s:property value="#detail.skuDetail.materials.type" /></td>
              <td><s:property value="#detail.skuDetail.customFieldCombox" /></td>
              <td><s:property value="#detail.skuDetail.materials.units" /></td>
              <td><s:property value="#detail.inventoryTypeName" /></td>
              <td><s:property value="#detail.batchNo" /></td>
              <td><s:property value='%{#detail.price==0?"":#detail.price}' /></td>
              <td><s:property value='%{#detail.number==0?"":#detail.number}' /></td>
              <td><s:property value='%{#detail.realNumber==0?"":#detail.realNumber}' /></td>
              <td><s:property value='%{#detail.diffNumber==0?"":#detail.diffNumber}' /></td>
              <td><s:property value='%{#detail.diffAmount==0?"":#detail.diffAmount}' /></td>
	        </tr>
	    </s:iterator>
       </table>
    </div>
</body>
</html>
